#pragma once

#include "mtxlib.h"

struct mesh_t
{
	struct vertex_t
	{
		vector2 texcoord;
		vector3 pos;
		vector3 norm;
	};
	vertex_t *vb;
	int *ib;
	int cv, ci;
	mesh_t() : cv(0), ci(0), vb(0), ib(0) {}
	~mesh_t();
	void draw();
	void fromFile(const char *filename);
};



